<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Insert title here</title>
		<script type="text/javascript" src="${pageContext.request.contextPath}/jquery/jquery-3.2.1.min.js"></script>
		<script type="text/javascript">
			$(function() {
				$("#text").blur(function() {
					alert("你已经离开页面");
				});
			});
			
		</script>
	</head>
	<body>
		<form action="${pageContext.request.contextPath}/PostServerAjax" method="post" >
			<table border="1" width="80%">
				<tr>
					<td>用户名</td>
					<td><input type="text" name="username" id="text" value="测试"></td>
				</tr>
				<tr>
					<td colspan="2"><input type="file"></td>
				</tr>
				<tr>
					<td colspan="2"><input type="submit" value="提交"></td>
				</tr>
			</table>
		
		</form>
	</body>
</html>